<h1>Listing giveslectures</h1>

<table>
  <tr>
    <th>Id</th>
    <th>Professor</th>
    <th>Lecture</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @giveslectures.each do |giveslecture| %>
  <tr>
    <td><%= giveslecture.id %></td>
    <td><%= giveslecture.professor_id %></td>
    <td><%= giveslecture.lecture_id %></td>
    <td><%= link_to 'Show', giveslecture %></td>
    <td><%= link_to 'Edit', edit_giveslecture_path(giveslecture) %></td>
    <td><%= link_to 'Destroy', giveslecture, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Giveslecture', new_giveslecture_path %>
